/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.mallsite.modules.shop.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 会员用户表Entity
 * @author ruyang
 * @version 2020-11-30
 */
@Table(name="ms_member", alias="a", columns={
		@Column(name="mem_code", attrName="memCode", label="会员编号", isPK=true),
		@Column(name="mem_name", attrName="memName", label="会员姓名", queryType=QueryType.LIKE),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class Member extends DataEntity<Member> {
	
	private static final long serialVersionUID = 1L;
	private String memCode;		// 会员编号
	private String memName;		// 会员姓名
	
	public Member() {
		this(null);
	}

	public Member(String id){
		super(id);
	}
	
	public String getMemCode() {
		return memCode;
	}

	public void setMemCode(String memCode) {
		this.memCode = memCode;
	}
	
	@Length(min=0, max=50, message="会员姓名长度不能超过 50 个字符")
	public String getMemName() {
		return memName;
	}

	public void setMemName(String memName) {
		this.memName = memName;
	}
	
}